package exception;

public class TryCatch {
    public static void main(String[] args){
        System.out.print(new TryCatch().compute());
    }

    /*
    if finally code enable, return -2, or else return -1;
     */
    public int compute(){
        try{
            int a = Integer.valueOf("3");
            int b = Integer.valueOf("a");

            return a + b;
        }catch(Exception e){
            return -1;
        }finally {
            return -2;
        }
    }
}
